package com.deyuanyun.pic.ae.service;

import com.deyuanyun.pic.ae.controller.dto.AEBaseQuery;
import com.deyuanyun.pic.ae.controller.dto.SewerQuery;
import com.deyuanyun.pic.ae.domain.DifficultyRepair;
import com.deyuanyun.pic.ae.domain.Sewer;
import com.github.pagehelper.Page;

import java.util.List;

/**
 * “难以维修接近” 服务接口
 *
 * @author huanglw
 * @date  2016-11-11
 *
 * History: [修改人][时间][修改描述]
 */
public interface DifficultyRepairService {

    /**
     * 条件查询
     *
     * @param aeBaseQuery
     * @return
     */
    Page<DifficultyRepair> query(AEBaseQuery aeBaseQuery);

    /**
     * 根据id查询 难以维修接近 详情
     *
     * @param id
     * @return
     */
    DifficultyRepair find(String id);

    /**
     * 创建或者修改
     *
     * @param difficultyRepair
     */
    int edit(DifficultyRepair difficultyRepair, List<String> imgs);

    /**
     * 审核
     *
     * @param difficultyRepair
     * @return
     */
    int audit(DifficultyRepair difficultyRepair);

    /**
     * 根据id 删除
     *
     * @param id
     * @return
     */
    int delete(String id);


}
